<template>
	<z-paging ref="paging" v-model="List" @query="queryList">
		<u-sticky>
			<hedsty :mrbot="'40'" :headCentext="'参与人员'"></hedsty>
		</u-sticky>
		<view class="canyuytouxian_bipx">
			<view class="dage_box" v-for="(item, index) in List" :key="index">
				<view class="top_box">
					<view class="shuzi_box" v-if="Number(item.counts) > 1">{{ item.counts }}</view>
					<image :src="item.avarat" mode="scaleToFill" />
				</view>
				<view class="nam_box">{{ item.nickname }}</view>
			</view>
			<view style="width: 100rpx;" v-for="i in 5"></view>
		</view>
	</z-paging>
</template>
<script>
	import hedsty from '../../components/hedsty.vue'
	export default {
		components: {
			hedsty
		},
		data() {
			return {
				luckyId: '',
				List: []
			}
		},
		onLoad(e) {
			this.luckyId = e.id
		},
		onShow() {},
		methods: {
			queryList(pageNo, pageSize) {
				let data = {
					page: pageNo,
					limit: pageSize,
					id: this.luckyId
				}
				this.$Request.get(this.$api.user.luckDrawsDraw_cy_all, data).then(res => {
					if (res.code == 200) {
						this.$refs.paging.complete(res.data.data)
					}
				})

			},
		}
	}
</script>
<style lang="scss" scoped>
	.canyuytouxian_bipx {
		width: 100%;
		display: flex;
		justify-content: space-between;
		box-sizing: border-box;
		flex-wrap: wrap;
		padding: 0 30rpx;
		overflow: hidden;
		overflow-x: auto;

		.dage_box {
			width: 100rpx;
			// height: 136rpx;
			margin-right: 28rpx;
			flex-shrink: 0;
			margin-bottom: 20rpx;

			.top_box {
				width: 100rpx;
				height: 100rpx;
				border-radius: 50%;
				margin-bottom: 13rpx;
				background-color: #fff;
				position: relative;

				.shuzi_box {
					width: 35rpx;
					height: 35rpx;
					border-radius: 50%;
					text-align: center;
					line-height: 35rpx;
					position: absolute;
					top: 0rpx;
					right: 0rpx;
					background-color: red;
					color: #FFFFFF;
					font-size: 22rpx;
				}

				image {
					width: 100rpx;
					height: 100rpx;
					border-radius: 50%;
				}
			}

			.nam_box {
				width: 100%;
				box-sizing: border-box;
				padding: 0 5rpx;
				overflow: hidden;
				text-overflow: ellipsis;
				white-space: nowrap;
				// height: 23rpx;
				font-family: PingFang SC;
				font-weight: 500;
				font-size: 24rpx;
				text-align: center;
				color: #FFFFFF;
				// line-height: 23rpx;
			}
		}
	}
</style>